import request from '@/utils/request'

export function listScene(data) {
  return request({
    url: '/scm/v1/scenes',
    method: 'post',
    data
  })
}

export function createScene(data) {
  return request({
    url: '/scm/v1/scene',
    method: 'post',
    data
  })
}

export function editScene(id, data) {
  return request({
    url: '/scm/v1/scene/' + id,
    method: 'put',
    data
  })
}

export function deleteScene(id) {
  return request({
    url: '/scm/v1/scene/' + id,
    method: 'delete'
  })
}

export function publicScene(id, action, data) {
  return request({
    url: '/scm/v1/serve/' + id + '/' + action,
    method: 'put',
    data
  })
}

export function tagScene(id, data) {
  return request({
    url: '/scm/v1/serve/tag/' + id,
    method: 'post',
    data
  })
}
